import request from '@/utils/request'

export default {
  // 分页查询
  getExpressListPage(page, limit, expressQuery) {
    return request({
      url: `/e/express/pageTeacherCondition/${page}/${limit}`,
      method: 'post',
      data: expressQuery
    })
  }, // 通过Id删除
  removeById(id) {
    return request({
      url: `/e/express/deleteExpressId/${id}`,
      method: `delete`
    })
  },
  // 添加讲师
  add(express) {
    return request({
      url: `/e/express/addExpress`,
      method: 'post',
      data: express
    })
  },
  // 根据id查询讲师
  getExpressInfo(id) {
    return request({
      url: `/e/express/getExpressInfo/${id}`,
      method: 'get'
    })
  },

  updateExpressById(express) {
    return request({
      url: `/e/express/updateExpressInfo`,
      method: 'put',
      data: express
    })
  },
  getExpressConsole() {
    return request({
      url: `/e/express/console`,
      method: 'get'
    })
  },
  getExpressConsoleMonth() {
    return request({
      url: `/e/express/console-column`,
      method: 'get'
    })
  },
  getSum() {
    return request({
      url: `/e/express/exressSum`,
      method: 'get'
    })
  },
  deletes(ids) {
    return request({
      url: `/e/express/deletes`,
      method: 'post',
      data: ids
    })
  }
}
